﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperJ.CMS.Commons
{
    public class JqGridDataList<T>
    {
        private string _id;
        private string[] _cell;
        private string fieldPK;
        public JqGridDataList(List<T> list,string strId)
        {
            System.Reflection.PropertyInfo p = typeof(T).GetProperty(strId);
            foreach(T t in list)
            {
                object oId= p.GetValue(t,null);
                this._id=oId.ToString();
            }
        }
        public string id
        {
            get {return _id;}
            set {value=_id;}
        }
        //public string[] cell
        //{
            
        //}
               //         id = i.AnnounceId,
              //  cell = new object[] { i.AnnounceId, i.Title, string.IsNullOrEmpty(i.LinkUrl) ? false : true, i.IsPass, i.IsTop, i.CreateTime }

    }
}
